-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Move python dependencies inside a virtualenv #7403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Error log:
|
@javiereguiluz Thanks for that, I have access to it through the backend. |
It looks like sphinx 1.3.6 is failing to build now :( Looking to see if upgrading it helps. |
This works. It looks like it started failing because we use So there are really two issues here:
I also have a more intrusive version (pinning all the Python dependencies) at #7404. |
Looks like you came to the same conclusion of the platform.sh support team! ;-) I'm 👎 for the more intrusive version, though I do like offering a requirements file that allows for people to quickly get up and running, with just the sphinx-php requirement. |
Closing it in favor of #7404. |
…(damz) This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7404). Discussion ---------- Pin Python dependencies and install them in a virtualenv (Alternative version from #7403) Installing `sphinx` started to fail about a week ago, with `pip` incorrectly trying to remove a Python package shipped at the system level in Platform.sh environment. It looks like it started failing because of a bug in the older version of `pip` that ships with Debian Jessie. We (Platform.sh) install global Python dependencies as user-site packages (using `pip --user`). We also ship system-site packages that we use for our own benefit. So two issues here: * First, that older version of `pip`. We are going to look into upgrading it (a new batch of images based on Debian Stretch are cooking); * The build dependencies of the Symfony Docs are not pinned, which makes the build non-repeatable. I'm guessing that in this case it broke [when jinja2 ended up requiring markupsafe>=0.23][jinja2-commit] (but that's just a guess). Fix the issue for good by installing in a `virtualenv` and pinning all the dependencies via `pip freeze`. [jinja2-commit]: pallets/jinja@5453db1 Commits ------- 75e7177 Pin Python dependencies and install them in a virtualenv
No description provided.